﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PowerBooking.RSE.Poco;

namespace PowerBooking.RSE.IRepository
{
    /// <summary>
    /// 蜘蛛仓储接口
    /// </summary>
    public interface ISpiderRepository
    {
        /// <summary>
        /// 根据蜘蛛ID查询蜘蛛
        /// </summary>
        /// <param name="spiderID"></param>
        /// <returns></returns>
        SpiderPoco QuerySpiderBySpiderID(long spiderID);
        
        /// <summary>
        /// 获取所有蜘蛛
        /// </summary>
        /// <returns></returns>
        IEnumerable<SpiderPoco> GetAllSpiders();
        
        /// <summary>
        /// 插入一个蜘蛛
        /// </summary>
        /// <param name="spiderPoco"></param>
        void InsertSpider(SpiderPoco spiderPoco);
    }
}
